// module.exports = {
//     //配置转发
//     devServer: {
//         proxy:'http://localhost:979'
//     }
// }

const path = require("path");

function resolve(dir) {
  return path.join(__dirname, dir);
}
module.exports = {
  lintOnSave: true,
  chainWebpack: (config) => {
    //配置路径别名+
    config.resolve.alias
      .set("@", resolve("src"))
      .set("@img", resolve("src/assets/img"))
      .set("@network", resolve("src/network"))
      .set("@views", resolve("src/views"))
      .set("@store", resolve("src/store"))
      .set("@router", resolve("src/router"))
      .set("@localStorage", resolve("src/localStorage"))
      .set("@components", resolve("src/components"));
  },
};
